﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Backstage.master" AutoEventWireup="true"
    ValidateRequest="false" CodeFile="addarticle.aspx.cs" Inherits="admin_Article_addarticle" %>
    <%@ Register Assembly="TW.Web.UI" Namespace="TW.Web.UI" TagPrefix="TWControls" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../css/article.css" rel="stylesheet" type="text/css" />
    <link type="text/css" rel="stylesheet" href="../../syntaxhighlighter_3.0.83/styles/shCore.css" />
    <link type="text/css" rel="stylesheet" href="../../syntaxhighlighter_3.0.83/styles/shThemeDefault.css" />
    <script type="text/javascript" src="../../syntaxhighlighter_3.0.83/scripts/shCore.js"></script>
    <script type="text/javascript" src="../../syntaxhighlighter_3.0.83/scripts/shBrushes.js"></script>
    <script type="text/javascript" src="../../ckeditor/ckeditor.js"></script>
    <link type="text/css" rel="Stylesheet" href="../../syntaxhighlighter_3.0.83/styles/shCoreDefault.css" />
    <script type="text/javascript">        SyntaxHighlighter.all();</script>
    <script src="../../Scripts/jquery-1.7.2.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#lbSaveDraft").toggle(function () {
                $("#ctl00_ContentPlaceHolder1_cbSaveDraft").attr("checked", true);
            }, function () {
                $("#ctl00_ContentPlaceHolder1_cbSaveDraft").attr("checked", false);
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h4 class="writeArticle">
        写文章</h4>
    <p class="title">
        <span>标题：</span><asp:TextBox ID="tb_ArticleTitle" runat="server" Width="70%" MaxLength="50"></asp:TextBox></p>
    <div>
        <p>
            文章简介：<asp:TextBox ID="tbIntroduction" runat="server" TextMode="MultiLine" MaxLength="300"
                Height="150px" Width="100%"></asp:TextBox></p>
        <br />
        <p><TWControls:ImageUploader ID="iuTest" runat="server" PreViewCSSClass="PreView" MaxSize="10240"
            IsGenerateThumb="true" IsRename="true" WatermarkType="Text" WatermarkText="代码管家"
            PicThumbSavePath="../../Images/UploadFiles/Thumbs/" PreviewProsition="Bottom" OnUploaded="iuTest_Uploaded" />
            <br />
            图片路径：&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lbImages" runat="server" Text=""></asp:Label>
            </p>
        <asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" Height="310px" Width="100%"></asp:TextBox>
        <script type="text/javascript">
            CKEDITOR.replace('<%= txtcontent.ClientID %>', { skin: 'office2003' });
        </script>
    </div>
    <br />
    <div>
        <p>
            文章类型：
            <asp:DropDownList ID="ddl_ArticleType" runat="server">
            </asp:DropDownList>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input id="cbSaveDraft" runat="server" type="checkbox" /><label id="lbSaveDraft">存为草稿</label>
        </p>
        <p>
            关键字：<asp:TextBox ID="tbArticleKeyword" runat="server" MaxLength="30"></asp:TextBox><font
                color="red">最多输入30个字符，请以英文状态下的逗号(,)分格。</font>
        </p>
    </div>
    <asp:Button ID="btn_Save" runat="server" Text="保存" OnClick="btn_Save_Click" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <ul>
        <li><a href="addarticle.aspx" title="添加文章">添加文章</a></li>
        <li>修改文章</li>
        <li>删除文章</li>
        <li>查询文章</li>
    </ul>
</asp:Content>
